﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Windows.Data;

namespace VSWClient.Pages
{
    public class TaskStatusConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
			if ((string)value == "1")
				return "createdNotBinded";
			else if ((string)value == "2")
				return "createdBinded";
			else if ((string)value == "3")
				return "started";
			else if ((string)value == "4")
				return "finished";
			else
				return (string)value;           
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
